Skip to content

Fix Claude Code Review workflow: use built-in review#208

Merged
justin808 merged 3 commits intomasterfrom
jg/rm-broken-claude-review
Feb 17, 2026
Merged

Fix Claude Code Review workflow: use built-in review#208
justin808 merged 3 commits intomasterfrom
jg/rm-broken-claude-review

Conversation

@justin808
Copy link
Member

@justin808 justin808 commented Feb 17, 2026

Summary

  • Fixes the claude-code-review.yml workflow to use the built-in review instead of the broken plugin approach
  • The plugin-based setup fails because it tries to call gh api via the Bash tool, which the action's sandbox blocks
  • Replaces plugin_marketplaces/plugins/prompt with review_triggered_on: pr and use_sticky_comment: true

Test plan

  • Open a test PR and verify Claude auto-reviews it

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated automated code review workflow: simplified review step configuration and enabled sticky comments for review output.
    • Switched workflow to run on pull requests without optional path filters.
    • Upgraded repository checkout action to a newer release.
    • Adjusted workflow permissions to grant write access for pull requests and issues.

The plugin-based review setup is broken — the plugin tries to call
gh api via the Bash tool, which the action sandbox blocks by default.
Removing in favor of the working default claude.yml (@claude mentions).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 17, 2026

No actionable comments were generated in the recent review. 🎉


Walkthrough

Updated the Claude Code Review GitHub Actions workflow: removed commented path filters, changed pull-request and issues permissions to write, upgraded actions/checkout to v6, and simplified the Claude Code Review step with review_triggered_on: pr and use_sticky_comment: true.

Changes

Cohort / File(s) Summary
Workflow update
\.github/workflows/claude-code-review.yml
Removed commented paths block; changed permissions for pull-requests and issues from readwrite; bumped actions/checkout@v4@v6; removed plugin_marketplaces/plugins/complex prompt inputs and added review_triggered_on: pr and use_sticky_comment: true with a simplified explicit prompt.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 I hopped through YAML lines with care,
Swapped checkout, nudged permissions fair,
Cleared old prompts, made comments stick — hooray!
A tidy review in a brighter display. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: fixing the Claude Code Review workflow by switching from a broken plugin-based approach to the action's built-in review mode.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch jg/rm-broken-claude-review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…n plugin

Replace the plugin-based review (which fails because the sandbox blocks
Bash tool access) with the built-in review_triggered_on and
use_sticky_comment options.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@justin808 justin808 changed the title Remove broken Claude Code Review workflow Fix Claude Code Review workflow: use built-in review Feb 17, 2026
The action auto-detects review mode from the pull_request trigger.
Only use_sticky_comment and prompt are needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/claude-code-review.yml:
- Around line 27-28: The workflow uses an invalid input review_triggered_on for
the anthropics/claude-code-action@v1 action so automatic PR reviews never run;
remove the review_triggered_on key and instead supply a valid prompt input
(e.g., a short prompt string to trigger automatic review) while keeping
use_sticky_comment: true; update the action block that references
anthropics/claude-code-action@v1 to include prompt: "<your review prompt here>"
and remove review_triggered_on to ensure the action runs in automatic mode.
- Around line 27-28: Replace the invalid input key review_triggered_on with the
proper prompt input expected by the action: set prompt to include the repository
and pull request number (e.g. use the GitHub context variables like ${{
github.repository }} and ${{ github.event.pull_request.number }}), keep
use_sticky_comment: true, and ensure the workflow trigger is pull_request
(opened, synchronize) so the action will run automatically in automation mode;
consult action.yml to confirm the prompt input name and signature and update the
workflow step that currently references review_triggered_on to use prompt
instead.

@justin808 justin808 merged commit 581629b into master Feb 17, 2026
7 of 8 checks passed
@justin808 justin808 deleted the jg/rm-broken-claude-review branch February 17, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant